package com.woniu.common.entity;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * tb_jp_hospitalinfo
 * @author 
 */
public class TbJpHospitalinfo implements Serializable {
    private Long id;

    /**
     * 省
     */
    private Integer pid;

    /**
     * 市
     */
    private Integer cid;

    /**
     * 县
     */
    private Integer zid;

    /**
     * 对接人ID
     */
    private Long dockingPeopleid;

    /**
     * 医院名称
     */
    private String hospitalName;

    /**
     * 租金
     */
    private Float rent;

    /**
     * 医院银行卡号
     */
    private String hospitalCardNo;

    /**
     * 收益
     */
    private BigDecimal gainSharing;

    /**
     * 创建时间
     */
    private String createTime;

    private Long shareholderid;

    private Long distributor1;

    private Long distributor2;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public Integer getZid() {
        return zid;
    }

    public void setZid(Integer zid) {
        this.zid = zid;
    }

    public Long getDockingPeopleid() {
        return dockingPeopleid;
    }

    public void setDockingPeopleid(Long dockingPeopleid) {
        this.dockingPeopleid = dockingPeopleid;
    }

    public String getHospitalName() {
        return hospitalName;
    }

    public void setHospitalName(String hospitalName) {
        this.hospitalName = hospitalName;
    }

    public Float getRent() {
        return rent;
    }

    public void setRent(Float rent) {
        this.rent = rent;
    }

    public String getHospitalCardNo() {
        return hospitalCardNo;
    }

    public void setHospitalCardNo(String hospitalCardNo) {
        this.hospitalCardNo = hospitalCardNo;
    }

    public BigDecimal getGainSharing() {
        return gainSharing;
    }

    public void setGainSharing(BigDecimal gainSharing) {
        this.gainSharing = gainSharing;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public Long getShareholderid() {
        return shareholderid;
    }

    public void setShareholderid(Long shareholderid) {
        this.shareholderid = shareholderid;
    }

    public Long getDistributor1() {
        return distributor1;
    }

    public void setDistributor1(Long distributor1) {
        this.distributor1 = distributor1;
    }

    public Long getDistributor2() {
        return distributor2;
    }

    public void setDistributor2(Long distributor2) {
        this.distributor2 = distributor2;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TbJpHospitalinfo other = (TbJpHospitalinfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()))
            && (this.getCid() == null ? other.getCid() == null : this.getCid().equals(other.getCid()))
            && (this.getZid() == null ? other.getZid() == null : this.getZid().equals(other.getZid()))
            && (this.getDockingPeopleid() == null ? other.getDockingPeopleid() == null : this.getDockingPeopleid().equals(other.getDockingPeopleid()))
            && (this.getHospitalName() == null ? other.getHospitalName() == null : this.getHospitalName().equals(other.getHospitalName()))
            && (this.getRent() == null ? other.getRent() == null : this.getRent().equals(other.getRent()))
            && (this.getHospitalCardNo() == null ? other.getHospitalCardNo() == null : this.getHospitalCardNo().equals(other.getHospitalCardNo()))
            && (this.getGainSharing() == null ? other.getGainSharing() == null : this.getGainSharing().equals(other.getGainSharing()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getShareholderid() == null ? other.getShareholderid() == null : this.getShareholderid().equals(other.getShareholderid()))
            && (this.getDistributor1() == null ? other.getDistributor1() == null : this.getDistributor1().equals(other.getDistributor1()))
            && (this.getDistributor2() == null ? other.getDistributor2() == null : this.getDistributor2().equals(other.getDistributor2()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
        result = prime * result + ((getCid() == null) ? 0 : getCid().hashCode());
        result = prime * result + ((getZid() == null) ? 0 : getZid().hashCode());
        result = prime * result + ((getDockingPeopleid() == null) ? 0 : getDockingPeopleid().hashCode());
        result = prime * result + ((getHospitalName() == null) ? 0 : getHospitalName().hashCode());
        result = prime * result + ((getRent() == null) ? 0 : getRent().hashCode());
        result = prime * result + ((getHospitalCardNo() == null) ? 0 : getHospitalCardNo().hashCode());
        result = prime * result + ((getGainSharing() == null) ? 0 : getGainSharing().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getShareholderid() == null) ? 0 : getShareholderid().hashCode());
        result = prime * result + ((getDistributor1() == null) ? 0 : getDistributor1().hashCode());
        result = prime * result + ((getDistributor2() == null) ? 0 : getDistributor2().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", pid=").append(pid);
        sb.append(", cid=").append(cid);
        sb.append(", zid=").append(zid);
        sb.append(", dockingPeopleid=").append(dockingPeopleid);
        sb.append(", hospitalName=").append(hospitalName);
        sb.append(", rent=").append(rent);
        sb.append(", hospitalCardNo=").append(hospitalCardNo);
        sb.append(", gainSharing=").append(gainSharing);
        sb.append(", createTime=").append(createTime);
        sb.append(", shareholderid=").append(shareholderid);
        sb.append(", distributor1=").append(distributor1);
        sb.append(", distributor2=").append(distributor2);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}